package cn.dragon.eatingfish;

import javax.swing.*;

public class Point extends SeaObject {
    private int point;
    private int count = 0;


    public void goDead() {
        setState(DEAD);
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getScore() {
        return 0;
    }

    @Override
    public ImageIcon getImage() {
        if (point == 10) {
            return Images.point10;
        } else if (point == 20) {
            return Images.point20;
        } else if (point == 30) {
            return Images.point30;
        } else if (point == 40) {
            return Images.point40;
        } else if (point == 50) {
            return Images.point50;
        } else if (point == 60) {
            return Images.point60;
        } else if (point == 70) {
            return Images.point70;
        } else if (point == -1) {
            return Images.claerAll;
        } else if (point == -2) {
            return Images.freeze;
        } else if (point == -3) {
            return Images.addLife;
        } else if (point == -4) {
            return Images.addScore;
        } else return null;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
